//
//  KNImageView.h
//

#import <UIKit/UIKit.h>

@interface KNImageView : UIImageView

/**
 KNImageView 便利构造器
 
 @param frame                  frame
 @param imageName              默认图片名
 @param highlightedImageName   高亮图片名
 @param contentMode            图片显示方式
 @param userInteractionEnabled 是否可交互
 
 @return KNImageView model
 */
+ (KNImageView *)buildWithFrame:(CGRect)frame
                      imageName:(NSString *)imageName
           highlightedImageName:(NSString *)highlightedImageName
                    contentMode:(UIViewContentMode)contentMode
         userInteractionEnabled:(BOOL)userInteractionEnabled;



/**
 KNImageView 便利构造器 (图片拉伸)
 
 @param insets                 图片拉伸(UIEdgeInsetsMake(10, 10, 10, 10))
 @param frame                  frame
 @param imageName              默认图片名
 @param highlightedImageName   高亮图片名
 @param contentMode            图片显示方式
 @param userInteractionEnabled 是否可交互

 @return KNImageView model
 */
+ (KNImageView *)buildWithPullImage:(NSString *)imageName
                             insets:(UIEdgeInsets)insets
                              frame:(CGRect)frame
               highlightedImageName:(NSString *)highlightedImageName
                        contentMode:(UIViewContentMode)contentMode
             userInteractionEnabled:(BOOL)userInteractionEnabled;

@end
